<template>
	<view class="container">
		<rich-text :nodes="data"></rich-text>
	</view>
</template>

<script setup>
import { onMounted, ref } from 'vue';
import { getAgreement } from '../api/agreement';
let data = ref("");

onMounted(async()=>{
	const {data:agreementData} = await getAgreement();
	if(data){
		data.value = agreementData;
	}else{
		// uni.showToast({
		// 	title:"网络异常，请重试"
		// })
	}
})
</script>

<style scoped>
.container{
	width: 100%;
	padding: 10rpx;
	box-sizing: border-box;
}
</style>
